/* Header Layout */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.app-header + * {
  margin-top: 0px;
  padding-top: 48px;
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  text-decoration: none;
  margin-right: 64px;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-main {
  background: linear-gradient(135deg, #409eff, #66b1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-divider {
  color: #909399;
  margin: 0 2px;
}

.logo-sub {
  color: #409eff;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #606266;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: #409eff;
  background: rgba(64, 158, 255, 0.05);
}

.nav-item.active {
  color: #409eff;
  background: rgba(64, 158, 255, 0.1);
}

.nav-item .el-icon {
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.user-section {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-info:hover {
  background: rgba(64, 158, 255, 0.05);
}

.user-avatar {
  border: 2px solid rgba(64, 158, 255, 0.2);
  transition: transform 0.3s ease;
}

.user-info:hover .user-avatar {
  transform: scale(1.05);
}

.username {
  font-size: 15px;
  font-weight: 500;
  color: #303133;
}

.dropdown-icon {
  font-size: 12px;
  color: #909399;
  transition: transform 0.3s ease;
}

.user-info:hover .dropdown-icon {
  transform: rotate(180deg);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.register-btn {
  background: linear-gradient(135deg, #409eff, #66b1ff);
  border: none;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #606266;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  background: #f5f7fa;
  color: #409eff;
}

.mobile-nav-item.active {
  background: #ecf5ff;
  color: #409eff;
}

.mobile-nav-item.highlight {
  background: linear-gradient(135deg, #409eff, #66b1ff);
  color: white;
}

.mobile-nav-item .el-icon {
  font-size: 20px;
}

/* Transitions */
.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.3s ease;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateY(-20px);
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  .nav-menu {
    gap: 24px;
  }

  .logo {
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .app-header {
    height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .auth-buttons {
    display: none;
  }

  .logo-text {
    font-size: 22px;
  }

  .username {
    display: none;
  }

  .dropdown-icon {
    display: none;
  }

  .user-info {
    padding: 4px;
  }
}
